package com.example.web.service.cabinetstatus.impl;

import com.example.web.constant.CouponType;
import com.example.web.service.CouponStrategy;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service(CouponType.DISCOUNT)
public class DiscountCouponStrategyImpl extends CouponStrategy {
    @Override
    public BigDecimal calculate(BigDecimal input) {
        return input.multiply(BigDecimal.valueOf(0.8));
    }

}
